import { createSSRApp } from "vue";
import App from "./App.vue";
import uviewPlus from "uview-plus";
import { store } from "./store";

const uviewPlusInstallCallback = (() => {
  return {
    options: {
      config: {
        // iconUrl: "https://stick.bbl147.cn/font_2225171_8kdcwk4po24.ttf",
        loadFontOnce: true
      }
    }
  };
}) as any;

export function createApp() {
  const app = createSSRApp(App);
  app.use(store).use(uviewPlus, uviewPlusInstallCallback);
  return {
    app
  };
}
